﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NGUYENTHANHDONG.Excercise_lv2.Bai3
{
    class MODELS
    {

        public double TinhToan(UserEntity objUser)
        {
            if(objUser.LUACHON == 1)
            {
                return 4 * objUser.SIDE;
            }
            return objUser.SIDE * objUser.SIDE;
        }
    }
}
